import { Injectable } from '@angular/core';

export interface Mobile {
  id: string;
  name: string;
}

@Injectable()
export class MobileService {
  private mobiles: Mobile[] = [
    {
      id: '1',
      name: '华为'
    },
    {
      id: '2',
      name: '小米'
    },
    {
      id: '3',
      name: 'Opo'
    }
  ];
  constructor() { }
  getMobileList() {
    return this.mobiles;
  }
}
